#ifndef SEQLIST_H
#define SEQLIST_H

#define MAX_SIZE 100

typedef struct {
    char username[50];
    char password[50];
} User;

typedef struct {
    User users[128];
    int size;
} SeqList;

// Function prototypes
void initSeqList(SeqList *list);
void registerUser(SeqList *list, const char *username, const char *password);
void loginUser(SeqList *list, const char *username, const char *password);
void addUser(SeqList *list, const char *username, const char *password);
void deleteUserByName(SeqList *list, const char *username);
void deleteLastUser(SeqList *list);
void modifyUserPassword(SeqList *list, const char *username, const char *newPassword);
void findUserByName(SeqList *list, const char *username);
void printAllUsers(SeqList *list);

#endif // SEQLIST_H